<#macro page p goto>
    <#assign start=p.range.start>
    <#assign end=p.range.end>
    <#if end gt start >
<div class="row">
    <div class="col-md-5 col-sm-12">
        <div class="dataTables_info" id="sample_1_info" role="status" aria-live="polite">
        </div>
    </div>
    <div class="col-md-7 col-sm-12">
        <div class="dataTables_paginate paging_bootstrap_full_number" id="sample_1_paginate">
            <ul class="pagination" style="visibility: visible;">
                <#if !p.first>
                    <li class="prev"><a href="javascript:${goto}('1')" title="First"><i
                            class="fa fa-angle-double-left"></i></a></li>
                    <li class="prev"><a href="javascript:${goto}('${p.prev}')" title="Prev"><i
                            class="fa fa-angle-left"></i></a></li>
                <#else >
                    <li class="prev disabled"><a href="javascript:;" title="First"><i
                            class="fa fa-angle-double-left"></i></a></li>
                    <li class="prev disabled"><a href="javascript:;" title="Prev"><i class="fa fa-angle-left"></i></a>
                    </li>
                </#if>
                <#list p.range.start..p.range.end as i>
                    <#if i==p.pageNo>
                            <li class="active"><a href="javascript:${goto}('${i}')">${i}</a></li>
                    <#else>
                            <li><a href="javascript:${goto}('${i}')">${i}</a></li>
                    </#if>
                </#list>
                <#if !p.last>
                        <li class="next"><a href="javascript:${goto}('${p.next}')" title="Next"><i
                                class="fa fa-angle-right"></i></a></li>
                        <li class="next"><a href="javascript:${goto}('${p.totalPage}')" title="Last"><i
                                class="fa fa-angle-double-right"></i></a></li>
                <#else >
                        <li class="next disabled"><a href="javascript:;" title="Next"><i class="fa fa-angle-right"></i></a>
                        </li>
                        <li class="next disabled"><a href="javascript:;" title="Last"><i
                                class="fa fa-angle-double-right"></i></a></li>
                </#if>
            </ul>
        </div>
    </div>
</div>
    </#if>
</#macro>
<#macro exprStatusName status>
<span class="btn yellow btn-xs">
    <#if status=='0'>
    未到达
    <#elseif status=='1'>
    已到达
    <#elseif status=='2'>
    已提货
    <#elseif status=='3'>
    已送达
    <#elseif status=='4'>
    已签收
    <#elseif status=='5'>
    已核销
    <#else >
    未知
    </#if>
</span>
</#macro>

<#macro exprStatusMenu id status statusInt verify>
    <#if status == '5' || (status == '4' && verify == '0')>
<span class="btn yellow btn-xs">
        <#if status=='4'>
    已签收
        <#elseif status=='5'>
    已核销
        </#if>
</span>
    <#else>
    <div class="dropdown">
        <a href="#" data-toggle="dropdown" class="dropdown-toggle" aria-expanded="false">     <#if status=='0'>
    未到达
        <#elseif status=='1'>
    已到达
        <#elseif status=='2'>
    已提货
        <#elseif status=='3'>
    已送达
        <#elseif status=='4'>
    已签收
        <#elseif status=='5'>
    已核销
        <#else >
    未知
        </#if>
            <span class="caret"></span></a>
        <ul class="dropdown-menu">
            <#if statusInt == 0>
            <li>
                <a href="javascript:Order.Action.updateExprStatus('${id}','1','已到达')"><i class="fa fa-edit"></i>已到达</a>
            </li>
            </#if>

            <#if statusInt lt 2>
            <li>
                <a href="javascript:Order.Action.updateExprStatus('${id}','2','已提货')"><i class="fa fa-edit"></i>已提货</a>
            </li>
            </#if>

            <#if statusInt lt 3>
            <li>
                <a href="javascript:Order.Action.updateExprStatus('${id}','3','已送达')"><i class="fa fa-edit"></i>已送达</a>
            </li>
            </#if>

            <#if statusInt lt 4>
            <li>
                <a href="javascript:Order.Action.updateExprStatus('${id}','4','已签收')"><i class="fa fa-edit"></i>已签收</a>
            </li>
            </#if>
            <#if statusInt lt 5 && verify!='0'>
            <li>
                <a href="javascript:Order.Action.updateExprStatus('${id}','5','已核销')"><i class="fa fa-edit"></i>已核销</a>
            </li>
            </#if>
        </ul>
    </div>
    </#if>
</#macro>